/**
 * @File   : layout.tsx
 * @Author : xue.xiaoBing
 * @Date   : 2024/3/22 14:44
 * @Desc   : 功能页
 * */

import Taro from "@tarojs/taro";
import {Image} from "@tarojs/components";
import wifiPng from "@/assets/images/wifi.png";
import Layout from "@/pages/index/layout";

import './index.scss'

const FuncPage = () => {
  // 添加跳转事件
  const handleJumpEvent = (path) => {
    // @ts-ignore
    Taro.redirectTo({url: path})
  }

  return (
    <Layout defIndex={1}>
      <div className='func-page'>
        <div className='tool-list'>
          <div className='tool-item' onClick={() => handleJumpEvent('/pages/code/index')}>
            <div className='tool-content'>
              <Image src={wifiPng} />
              <span>WIFI生成码</span>
            </div>
          </div>
        </div>
      </div>
    </Layout>
  )
}

export default FuncPage;
